<?php


namespace Hilaoyu\ComputeCloudClient\Interfaces;


use Hilaoyu\ComputeCloudClient\AssetModel;
use Hilaoyu\ComputeCloudClient\AssetModels;

interface ApiCbnInterface
{
    public function getError($reArr = true, $clean = true);

    public function cenCreate(string $name,string $description=''):?AssetModel;
    public function censDescribe(array $names=[],array $cenIds=[]):AssetModels;
    public function cenDescribe(string $cenId):?AssetModel;
    public function cenDelete(string $cenId):bool;
    public function cenChildInstanceAttach(string $cenId,string $childInstanceId,string $childInstanceType='VPC',string $childInstanceRegionId='',int $childInstanceOwnerId = 0):bool;

    public function cenAttachedChildInstancesDescribe(string $cenId,string $childInstanceType='',string $childInstanceRegionId=''):AssetModels;
    public function cenChildInstanceDetach(string $cenId,string $childInstanceId,string $childInstanceType='VPC',string $childInstanceRegionId='',int $childInstanceOwnerId = 0):bool;


}
